<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户注册</title>
<style>
	.error {
		color: #ff0000;
		font-style: italic;
	}
</style>
</head>
<body>
	<form:form method="post" commandName="user">
		<table>
			<tr>
				<td>用户</td>
				<td><form:input path="name"></form:input></td>
				<td><form:errors path="name" cssClass="error"/></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><form:password path="password"></form:password></td>
				<td><form:errors path="password" cssClass="error"/></td>
			</tr>
			<tr>
				<td>城市</td>
				<td>
					<form:select path="city">
						<form:option value="0" label="请选择"></form:option>
						<form:options items="${cityList}" itemValue="cityId" itemLabel="cityName" />
					</form:select>
				</td>
				<td><form:errors path="city" cssClass="error" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="注册" /></td>
			</tr>
		</table>
	</form:form>
	<br />
	<a href="listAllUsers.html">列出所有的成员名字</a>
	<br />
	<a href="page.html">光大永明</a>
	<br />
	<a href="minshengTest.html">测试民生银行的接口问题</a>
	<br />
	<a href="fileUpload.html">上传照片</a>
	<br />
	<a href="<c:url value="/j_spring_security_logout"/>">退出</a>
</body>
</html>